#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;

#define STRING_LENGTH 300

int main()
{
    char str[STRING_LENGTH];
    while (cin.getline(str, STRING_LENGTH)) {
        int str_len = strlen(str);
        if (str[str_len - 1] == '\n') {
            str[str_len - 1] = '\0';
            str_len--;
        }

        int i, j;
        for (i = 0, j = str_len - 1; i < j; i++, j--) {
            if (str[i] != str[j]) {
                printf("NO\n");
                break;
            }
        }
        if (i >= j) 
            printf("YES\n");   
    }
}